how to create input animation in html css